package com.winning.pmph.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.winning.pmph.entity.RuleItem;
import com.winning.pmph.mapper.RuleItemMapper;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 刘亚飞
 * @Description
 * @create 2020-10-15 17:39
 */
@Component
@Transactional
public class RuleItemService extends ServiceImpl<RuleItemMapper, RuleItem> {
    @Resource
    RuleItemMapper ruleItemMapper;

    public List<RuleItem> getRuleItem(String wherePart) {
        return ruleItemMapper.selectBeansByWherePart(wherePart);
    }
}
